<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>Mine Sweeper Clone: Riferimenti per il file minesweeperclone.cc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mine Sweeper Clone
   &#160;<span id="projectnumber">0.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="pages.html"><span>Pagine&#160;collegate</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Composti</a> &#124;
<a href="#func-members">Funzioni</a> &#124;
<a href="#var-members">Variabili</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file minesweeperclone.cc</div>  </div>
</div><!--header-->
<div class="contents">

<p>Modulo contenente principalmente la funzione <a class="el" href="minesweeperclone_8cc.html#a0ddf1224851353fc92bfbff6f499fa97" title="MAIN. ">main</a>, la gestione degli eventi dei widgets utilizzati dalla finestra principale e la gestione del timer della partita.  
<a href="#details">Continua...</a></p>
<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;gtk/gtk.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="grid__data_8h_source.html">grid_data.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="records__io_8h_source.html">records_io.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="xpm__images_8h_source.html">xpm_images.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="debug_8h_source.html">debug.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Composti</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structabout__dialog__s.html">about_dialog_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra informazioni.  <a href="structabout__dialog__s.html#details">Continua...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmain__form__s.html">main_form_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra principale.  <a href="structmain__form__s.html#details">Continua...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structname__dialog__s.html">name_dialog_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra per l'inserimento del nome del giocatore.  <a href="structname__dialog__s.html#details">Continua...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcustomgrid__dialog__s.html">customgrid_dialog_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra per l'inserimento delle dimensioni per la creazione di una griglia personalizzata.  <a href="structcustomgrid__dialog__s.html#details">Continua...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:a0a2c87b121f132ebdc39c0f755230dfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a0a2c87b121f132ebdc39c0f755230dfd">create_new_grid</a> (const int acols, const int arows, const int anummines)</td></tr>
<tr class="memdesc:a0a2c87b121f132ebdc39c0f755230dfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crea una nuova griglia sulla finestra.  <a href="#a0a2c87b121f132ebdc39c0f755230dfd">Continua...</a><br/></td></tr>
<tr class="separator:a0a2c87b121f132ebdc39c0f755230dfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b2cd84658532d74eb2203d77d4ded43"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a8b2cd84658532d74eb2203d77d4ded43">on_button_press_event</a> (GtkWidget *widget, GdkEvent *event, gpointer user_data)</td></tr>
<tr class="memdesc:a8b2cd84658532d74eb2203d77d4ded43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evento invocato quando viene cliccata la casella.  <a href="#a8b2cd84658532d74eb2203d77d4ded43">Continua...</a><br/></td></tr>
<tr class="separator:a8b2cd84658532d74eb2203d77d4ded43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae033909d0f0579232fea540174d7e894"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#ae033909d0f0579232fea540174d7e894">on_button_status_clicked</a> (GtkButton *button, gpointer user_data)</td></tr>
<tr class="memdesc:ae033909d0f0579232fea540174d7e894"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evento invocato quando viene premuto il pulsante dello stato della partita.  <a href="#ae033909d0f0579232fea540174d7e894">Continua...</a><br/></td></tr>
<tr class="separator:ae033909d0f0579232fea540174d7e894"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af77e6eefae745ffde04045c780aa6207"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#af77e6eefae745ffde04045c780aa6207">on_mainwindow_delete_event</a> (GtkWidget *widget, GdkEvent *event, gpointer user_data)</td></tr>
<tr class="memdesc:af77e6eefae745ffde04045c780aa6207"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evento invocato quando viene richiesta la chiusura della finestra.  <a href="#af77e6eefae745ffde04045c780aa6207">Continua...</a><br/></td></tr>
<tr class="separator:af77e6eefae745ffde04045c780aa6207"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a069f2248e72187f5691cd37ea9aad60a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a069f2248e72187f5691cd37ea9aad60a">on_menuitem_about_activate</a> (GtkMenuItem *menuitem, gpointer user_data)</td></tr>
<tr class="memdesc:a069f2248e72187f5691cd37ea9aad60a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visualizza dialog con informazioni sul programma.  <a href="#a069f2248e72187f5691cd37ea9aad60a">Continua...</a><br/></td></tr>
<tr class="separator:a069f2248e72187f5691cd37ea9aad60a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae394a50233b69f05a8c2177da6a781b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#ae394a50233b69f05a8c2177da6a781b9">on_menuitem_newcustom_activate</a> (GtkMenuItem *menuitem, gpointer user_data)</td></tr>
<tr class="memdesc:ae394a50233b69f05a8c2177da6a781b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crea una griglia personalizzata.  <a href="#ae394a50233b69f05a8c2177da6a781b9">Continua...</a><br/></td></tr>
<tr class="separator:ae394a50233b69f05a8c2177da6a781b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dce2f82429f2a6d4342e879d851ddcf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a6dce2f82429f2a6d4342e879d851ddcf">on_menuitem_new16x16_activate</a> (GtkMenuItem *menuitem, gpointer user_data)</td></tr>
<tr class="memdesc:a6dce2f82429f2a6d4342e879d851ddcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crea una griglia di dimensione 16x16 con 40 mine (livello intermedio).  <a href="#a6dce2f82429f2a6d4342e879d851ddcf">Continua...</a><br/></td></tr>
<tr class="separator:a6dce2f82429f2a6d4342e879d851ddcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae89956f17e8596b21aa1b995a840bb70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#ae89956f17e8596b21aa1b995a840bb70">on_menuitem_new30x16_activate</a> (GtkMenuItem *menuitem, gpointer user_data)</td></tr>
<tr class="memdesc:ae89956f17e8596b21aa1b995a840bb70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crea una griglia di dimensione 30x16 con 99 mine (livello esperto).  <a href="#ae89956f17e8596b21aa1b995a840bb70">Continua...</a><br/></td></tr>
<tr class="separator:ae89956f17e8596b21aa1b995a840bb70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae771b3c9b613489092515e2469d932c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#ae771b3c9b613489092515e2469d932c7">on_menuitem_new9x9_activate</a> (GtkMenuItem *menuitem, gpointer user_data)</td></tr>
<tr class="memdesc:ae771b3c9b613489092515e2469d932c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crea una griglia di dimensione 9x9 con 10 mine (livello principiante).  <a href="#ae771b3c9b613489092515e2469d932c7">Continua...</a><br/></td></tr>
<tr class="separator:ae771b3c9b613489092515e2469d932c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b8bf9cdf304497547d373f131ca5bf2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a5b8bf9cdf304497547d373f131ca5bf2">on_menuitem_quit_activate</a> (GtkMenuItem *menuitem, gpointer user_data)</td></tr>
<tr class="memdesc:a5b8bf9cdf304497547d373f131ca5bf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Chiude programma.  <a href="#a5b8bf9cdf304497547d373f131ca5bf2">Continua...</a><br/></td></tr>
<tr class="separator:a5b8bf9cdf304497547d373f131ca5bf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9317826c2340c57a5924f73d6db7aabb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a9317826c2340c57a5924f73d6db7aabb">show_record</a> (const int acols, const int arows, const int anummines)</td></tr>
<tr class="memdesc:a9317826c2340c57a5924f73d6db7aabb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visualizza i dati del record corrente.  <a href="#a9317826c2340c57a5924f73d6db7aabb">Continua...</a><br/></td></tr>
<tr class="separator:a9317826c2340c57a5924f73d6db7aabb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19e0abb59969b0ac948cb8515bffddb8"><td class="memItemLeft" align="right" valign="top">gboolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a19e0abb59969b0ac948cb8515bffddb8">timer_handler_event</a> (gpointer user_data)</td></tr>
<tr class="memdesc:a19e0abb59969b0ac948cb8515bffddb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evento contatore tempo gioco.  <a href="#a19e0abb59969b0ac948cb8515bffddb8">Continua...</a><br/></td></tr>
<tr class="separator:a19e0abb59969b0ac948cb8515bffddb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a335584beb713bd754467dd912b676c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a9a335584beb713bd754467dd912b676c">timer_handler_start</a> ()</td></tr>
<tr class="memdesc:a9a335584beb713bd754467dd912b676c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Avvia il contatore del tempo di gioco trascorso.  <a href="#a9a335584beb713bd754467dd912b676c">Continua...</a><br/></td></tr>
<tr class="separator:a9a335584beb713bd754467dd912b676c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c0c26b8852e6d266c968de621443515"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a1c0c26b8852e6d266c968de621443515">timer_handler_stop</a> ()</td></tr>
<tr class="memdesc:a1c0c26b8852e6d266c968de621443515"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ferma il contatore del tempo di gioco trascorso.  <a href="#a1c0c26b8852e6d266c968de621443515">Continua...</a><br/></td></tr>
<tr class="separator:a1c0c26b8852e6d266c968de621443515"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecf0bd77c1f3e15d08bee51c32f8fb4b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#aecf0bd77c1f3e15d08bee51c32f8fb4b">update_window_widgets</a> ()</td></tr>
<tr class="memdesc:aecf0bd77c1f3e15d08bee51c32f8fb4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aggiorna i componenti di stato sulla finestra.  <a href="#aecf0bd77c1f3e15d08bee51c32f8fb4b">Continua...</a><br/></td></tr>
<tr class="separator:aecf0bd77c1f3e15d08bee51c32f8fb4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="memdesc:a0ddf1224851353fc92bfbff6f499fa97"><td class="mdescLeft">&#160;</td><td class="mdescRight">MAIN.  <a href="#a0ddf1224851353fc92bfbff6f499fa97">Continua...</a><br/></td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variabili</h2></td></tr>
<tr class="memitem:a0855bbbdda5ad5181a9ebe4f2d9b289a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structabout__dialog__s.html">about_dialog_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a0855bbbdda5ad5181a9ebe4f2d9b289a">about_dialog</a></td></tr>
<tr class="memdesc:a0855bbbdda5ad5181a9ebe4f2d9b289a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra informazioni.  <a href="#a0855bbbdda5ad5181a9ebe4f2d9b289a">Continua...</a><br/></td></tr>
<tr class="separator:a0855bbbdda5ad5181a9ebe4f2d9b289a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebb33f8b44bc8ff613ea9f2a52703633"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmain__form__s.html">main_form_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#aebb33f8b44bc8ff613ea9f2a52703633">main_form</a></td></tr>
<tr class="memdesc:aebb33f8b44bc8ff613ea9f2a52703633"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra principale.  <a href="#aebb33f8b44bc8ff613ea9f2a52703633">Continua...</a><br/></td></tr>
<tr class="separator:aebb33f8b44bc8ff613ea9f2a52703633"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af226650a59a114d56efe11a406c5c19b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structname__dialog__s.html">name_dialog_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#af226650a59a114d56efe11a406c5c19b">name_dialog</a></td></tr>
<tr class="memdesc:af226650a59a114d56efe11a406c5c19b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra per l'inserimento del nome del giocatore.  <a href="#af226650a59a114d56efe11a406c5c19b">Continua...</a><br/></td></tr>
<tr class="separator:af226650a59a114d56efe11a406c5c19b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1023016d936fd13191eddbe70ae49a94"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structcustomgrid__dialog__s.html">customgrid_dialog_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a1023016d936fd13191eddbe70ae49a94">customgrid_dialog</a></td></tr>
<tr class="memdesc:a1023016d936fd13191eddbe70ae49a94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura contenente i controlli della finestra per l'inserimento del nome del giocatore.  <a href="#a1023016d936fd13191eddbe70ae49a94">Continua...</a><br/></td></tr>
<tr class="separator:a1023016d936fd13191eddbe70ae49a94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7ca018a15d077bfab0ecfd899428d44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgrid__s.html">grid_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#aa7ca018a15d077bfab0ecfd899428d44">grid</a></td></tr>
<tr class="memdesc:aa7ca018a15d077bfab0ecfd899428d44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struttura dati principale contenente tutte le singole celle ed i relativi status (definita in <a class="el" href="grid__data_8cc.html" title="Modulo per la gestione della griglia principale. ">grid_data.cc</a>)  <a href="#aa7ca018a15d077bfab0ecfd899428d44">Continua...</a><br/></td></tr>
<tr class="separator:aa7ca018a15d077bfab0ecfd899428d44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fbe685a47e765bade6203c9a6a41ea3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a0fbe685a47e765bade6203c9a6a41ea3">MASK</a> = 1 | 2 | 4</td></tr>
<tr class="memdesc:a0fbe685a47e765bade6203c9a6a41ea3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maschera per abilitare i vari livelli di debug (definita in <a class="el" href="minesweeperclone_8cc.html" title="Modulo contenente principalmente la funzione main, la gestione degli eventi dei widgets utilizzati da...">minesweeperclone.cc</a>)  <a href="#a0fbe685a47e765bade6203c9a6a41ea3">Continua...</a><br/></td></tr>
<tr class="separator:a0fbe685a47e765bade6203c9a6a41ea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f6f3e1dc8d57b01b47c3d747e5e3602"><td class="memItemLeft" align="right" valign="top">static guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a1f6f3e1dc8d57b01b47c3d747e5e3602">timer_id</a></td></tr>
<tr class="memdesc:a1f6f3e1dc8d57b01b47c3d747e5e3602"><td class="mdescLeft">&#160;</td><td class="mdescRight">ID dell'evento timer.  <a href="#a1f6f3e1dc8d57b01b47c3d747e5e3602">Continua...</a><br/></td></tr>
<tr class="separator:a1f6f3e1dc8d57b01b47c3d747e5e3602"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e85223fcd11d3cf3a1fff5b211332de"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a6e85223fcd11d3cf3a1fff5b211332de">timer_count</a></td></tr>
<tr class="memdesc:a6e85223fcd11d3cf3a1fff5b211332de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tempo trascorso di gioco.  <a href="#a6e85223fcd11d3cf3a1fff5b211332de">Continua...</a><br/></td></tr>
<tr class="separator:a6e85223fcd11d3cf3a1fff5b211332de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a4b67eda52869651e665a66bb8778a5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structrecord__data__s.html">record_data_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="minesweeperclone_8cc.html#a7a4b67eda52869651e665a66bb8778a5">record_data</a></td></tr>
<tr class="memdesc:a7a4b67eda52869651e665a66bb8778a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dati relativi al record di gioco attuale.  <a href="#a7a4b67eda52869651e665a66bb8778a5">Continua...</a><br/></td></tr>
<tr class="separator:a7a4b67eda52869651e665a66bb8778a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Descrizione dettagliata</h2>
<div class="textblock"><p>Modulo contenente principalmente la funzione <a class="el" href="minesweeperclone_8cc.html#a0ddf1224851353fc92bfbff6f499fa97" title="MAIN. ">main</a>, la gestione degli eventi dei widgets utilizzati dalla finestra principale e la gestione del timer della partita. </p>
</div><h2 class="groupheader">Documentazione delle funzioni</h2>
<a class="anchor" id="a0a2c87b121f132ebdc39c0f755230dfd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void create_new_grid </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>acols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>arows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>anummines</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Crea una nuova griglia sulla finestra. </p>
<p>Inoltre viene creato il collegamento della casella all'evento <a class="el" href="minesweeperclone_8cc.html#a8b2cd84658532d74eb2203d77d4ded43" title="Evento invocato quando viene cliccata la casella. ">on_button_press_event</a> passando come parametro dell'evento il puntatore alla struttura <a class="el" href="structbutton__s.html" title="Struttura dei dati relativi alla casella. ">button_s</a> relativa a quella casella.</p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">acols</td><td>Numero di colonne della griglia (MIN 1) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">arows</td><td>Numero di righe della griglia (MIN 1) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">anummines</td><td>Numero di mine (MAX arows * acols - 1) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>MAIN. </p>
<p>Il compito principale di questa funzione è quello di:</p>
<ul>
<li>rendere disponibili le immagini incluse nel file eseguibile (si veda <a class="el" href="xpm__images_8h.html" title="Header del modulo per la gestione delle immagini utilizzate dal programma. ">xpm_images.h</a>)</li>
<li>caricare il file glade dove vengono definite le finestre ed i relativi widgets</li>
<li>impostare i puntatori ai vari widgets utilizzati ed agganciarne gli eventuali eventi</li>
<li>creare una prima griglia 9x9 </li>
</ul>

</div>
</div>
<a class="anchor" id="a8b2cd84658532d74eb2203d77d4ded43"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> gboolean on_button_press_event </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEvent *&#160;</td>
          <td class="paramname"><em>event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Evento invocato quando viene cliccata la casella. </p>
<p>In base a quale casella è stata cliccata, viene visualizzato il contenuto o cambiato lo stato della casella.</p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">widget</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">event</td><td>Evento che ha scaturito il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>true per fermare la propagazione del segnale e false per continuarla </dd></dl>

</div>
</div>
<a class="anchor" id="ae033909d0f0579232fea540174d7e894"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_button_status_clicked </td>
          <td>(</td>
          <td class="paramtype">GtkButton *&#160;</td>
          <td class="paramname"><em>button</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Evento invocato quando viene premuto il pulsante dello stato della partita. </p>
<p>Viene iniziata una nuova partita con le dimensione della griglia attuale.</p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">button</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af77e6eefae745ffde04045c780aa6207"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> gboolean on_mainwindow_delete_event </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&#160;</td>
          <td class="paramname"><em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEvent *&#160;</td>
          <td class="paramname"><em>event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Evento invocato quando viene richiesta la chiusura della finestra. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">widget</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">event</td><td>Evento che ha scaturito il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>true per fermare la propagazione del segnale e false per continuarla </dd></dl>

</div>
</div>
<a class="anchor" id="a069f2248e72187f5691cd37ea9aad60a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_menuitem_about_activate </td>
          <td>(</td>
          <td class="paramtype">GtkMenuItem *&#160;</td>
          <td class="paramname"><em>menuitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Visualizza dialog con informazioni sul programma. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">menuitem</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6dce2f82429f2a6d4342e879d851ddcf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_menuitem_new16x16_activate </td>
          <td>(</td>
          <td class="paramtype">GtkMenuItem *&#160;</td>
          <td class="paramname"><em>menuitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Crea una griglia di dimensione 16x16 con 40 mine (livello intermedio). </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">menuitem</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae89956f17e8596b21aa1b995a840bb70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_menuitem_new30x16_activate </td>
          <td>(</td>
          <td class="paramtype">GtkMenuItem *&#160;</td>
          <td class="paramname"><em>menuitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Crea una griglia di dimensione 30x16 con 99 mine (livello esperto). </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">menuitem</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae771b3c9b613489092515e2469d932c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_menuitem_new9x9_activate </td>
          <td>(</td>
          <td class="paramtype">GtkMenuItem *&#160;</td>
          <td class="paramname"><em>menuitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Crea una griglia di dimensione 9x9 con 10 mine (livello principiante). </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">menuitem</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae394a50233b69f05a8c2177da6a781b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_menuitem_newcustom_activate </td>
          <td>(</td>
          <td class="paramtype">GtkMenuItem *&#160;</td>
          <td class="paramname"><em>menuitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Crea una griglia personalizzata. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">menuitem</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5b8bf9cdf304497547d373f131ca5bf2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a49d85811d1043ff1f3d7df4be3d90138">MODULE_EXPORT</a> void on_menuitem_quit_activate </td>
          <td>(</td>
          <td class="paramtype">GtkMenuItem *&#160;</td>
          <td class="paramname"><em>menuitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Chiude programma. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">menuitem</td><td>Oggetto che ha ricevuto il segnale </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9317826c2340c57a5924f73d6db7aabb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void show_record </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>acols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>arows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>anummines</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Visualizza i dati del record corrente. </p>
<p>La funzione carica i dati del record dal file <a class="el" href="common_8h.html#a21ad8fd60380019d4ae5133842c9ca14" title="Definizione del nome del file per la gestione dei records. ">RECORDS_INI_FILE</a> e li visualizza sulla finestra principale.</p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">acols</td><td>Numero di colonne della griglia </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">arows</td><td>Numero di righe della griglia </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">anummines</td><td>Numero di mine </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a19e0abb59969b0ac948cb8515bffddb8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gboolean timer_handler_event </td>
          <td>(</td>
          <td class="paramtype">gpointer&#160;</td>
          <td class="paramname"><em>user_data</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Evento contatore tempo gioco. </p>
<p>L'evento viene invocato ogni secondo dal sistema e visualizza il tempo passato dall'inizio della partita.</p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>Dati utente impostati quando il segnale è stato collegato </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>true per continuare con l'esecuzione ciclica dell'evento e false per fermarlo </dd></dl>

</div>
</div>
<a class="anchor" id="a9a335584beb713bd754467dd912b676c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void timer_handler_start </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Avvia il contatore del tempo di gioco trascorso. </p>
<p>Avvia il timer impostando l'invio del segnale all'evento timer ogni 1000ms. </p>

</div>
</div>
<a class="anchor" id="a1c0c26b8852e6d266c968de621443515"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void timer_handler_stop </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ferma il contatore del tempo di gioco trascorso. </p>

</div>
</div>
<a class="anchor" id="aecf0bd77c1f3e15d08bee51c32f8fb4b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void update_window_widgets </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Aggiorna i componenti di stato sulla finestra. </p>
<p>In particolare:</p>
<ul>
<li>il contatore delle mine</li>
<li>lo stato della partita </li>
</ul>

</div>
</div>
<h2 class="groupheader">Documentazione delle variabili</h2>
<a class="anchor" id="a0855bbbdda5ad5181a9ebe4f2d9b289a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structabout__dialog__s.html">about_dialog_s</a> about_dialog</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Struttura contenente i controlli della finestra informazioni. </p>

</div>
</div>
<a class="anchor" id="a1023016d936fd13191eddbe70ae49a94"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcustomgrid__dialog__s.html">customgrid_dialog_s</a> customgrid_dialog</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Struttura contenente i controlli della finestra per l'inserimento del nome del giocatore. </p>

</div>
</div>
<a class="anchor" id="aa7ca018a15d077bfab0ecfd899428d44"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgrid__s.html">grid_s</a> grid</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Struttura dati principale contenente tutte le singole celle ed i relativi status (definita in <a class="el" href="grid__data_8cc.html" title="Modulo per la gestione della griglia principale. ">grid_data.cc</a>) </p>

</div>
</div>
<a class="anchor" id="aebb33f8b44bc8ff613ea9f2a52703633"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structmain__form__s.html">main_form_s</a> main_form</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Struttura contenente i controlli della finestra principale. </p>

</div>
</div>
<a class="anchor" id="a0fbe685a47e765bade6203c9a6a41ea3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MASK = 1 | 2 | 4</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maschera per abilitare i vari livelli di debug (definita in <a class="el" href="minesweeperclone_8cc.html" title="Modulo contenente principalmente la funzione main, la gestione degli eventi dei widgets utilizzati da...">minesweeperclone.cc</a>) </p>

</div>
</div>
<a class="anchor" id="af226650a59a114d56efe11a406c5c19b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structname__dialog__s.html">name_dialog_s</a> name_dialog</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Struttura contenente i controlli della finestra per l'inserimento del nome del giocatore. </p>

</div>
</div>
<a class="anchor" id="a7a4b67eda52869651e665a66bb8778a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structrecord__data__s.html">record_data_s</a> record_data</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Dati relativi al record di gioco attuale. </p>

</div>
</div>
<a class="anchor" id="a6e85223fcd11d3cf3a1fff5b211332de"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int timer_count</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tempo trascorso di gioco. </p>

</div>
</div>
<a class="anchor" id="a1f6f3e1dc8d57b01b47c3d747e5e3602"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">guint timer_id</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ID dell'evento timer. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Gio 3 Apr 2014 21:57:36 per Mine Sweeper Clone da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
